home *** CD-ROM | disk | FTP | other *** search
- Subject: Initializing an Extension
- Sent: 3/5/96 3:59 PM
- Received: 3/5/96 4:11 PM
- From: Bill Finzer, bfinzer@mail.keypress.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Subject: Initializing an Extension Time: 3:15 PM Date:3/5/96
-
- The discussion on extensions has been immensely helpful.
-
- Damon describes the static method MyCreateXYZProc which makes the call:
-
- > theExtension -> InitMySOMNautilusShellExtension (ev, part ->
- > GetODPart (ev));
-
- OK, so consider InitMySOMNautilusShellExtension. There I would like to get
- access to an object owned by my part and stash a reference to it in the
- extension. OpenDoc's SoundEditor extension, for example, initializes a field
-
- SoundEditor* fOwner
-
- using the call
-
- fOwner = ((SampleCode_som_SoundEditor*) owner->GetRealPart(ev))
- ->GetImplementation(ev);
-
- How do I do that in ODF? The GetRealPart method will return an ODPart, but
- what I really want is my FW_CPart, the one, if I understand things correctly,
- that is holding onto the ODPart in its fODPart field. (I want my FW_CPart
- because it has a pointer to an object that I want to stash in my extension
- and refer to from another part.)
-
- If I can't get access to my FW_Cpart in my version of
- InitMySOMNautilusShellExtension, should I make a second call in
- MyCreateXYZProc of the following form?
-
- theExtension->SetObjectOfInterest (ev, fMyObjectOfInterest);
-
- Many thanks,
- Bill Finzer
- Educational Technology Director
- Key Curriculum Press
-